import { isObject } from "./object.js";

/**
 * 是否为数组结构
 * @param {Object} schema
 * @returns {boolean}
 */
export const isArraySchema = function (schema) {
  return !!(
    isObject(schema) &&
    Array.isArray(schema.children) &&
    schema.type === "array"
  );
};